<!doctype html>
<script src="../../../resources/testharness.js"></script>
<script src="../../../resources/testharnessreport.js"></script>
<script src="../../assert_selection.js"></script>
<script>
selection_test(
  '<div contenteditable dir="ltr">|\n\u05D0\u05D1\u05D2 xyz \u05D3\u05D4\u05D5 def \u05D6\u05D7\u05D8\n</div>',
  selection => selection.modify('extend', 'forward', 'lineboundary'),
  '<div contenteditable dir="ltr">\n^\u05D0\u05D1\u05D2 xyz \u05D3\u05D4\u05D5 def \u05D6\u05D7\u05D8|\n</div>',
  '11-0 ltr forward lineboundary');

selection_test(
  '<div contenteditable dir="ltr">\n|\u05D0\u05D1\u05D2 xyz \u05D3\u05D4\u05D5 def \u05D6\u05D7\u05D8\n</div>',
  selection => selection.modify('extend', 'forward', 'lineboundary'),
  '<div contenteditable dir="ltr">\n^\u05D0\u05D1\u05D2 xyz \u05D3\u05D4\u05D5 def \u05D6\u05D7\u05D8|\n</div>',
  '11-1 ltr forward lineboundary');

selection_test(
  '<div contenteditable dir="ltr">\n\u05D0|\u05D1\u05D2 xyz \u05D3\u05D4\u05D5 def \u05D6\u05D7\u05D8\n</div>',
  selection => selection.modify('extend', 'forward', 'lineboundary'),
  '<div contenteditable dir="ltr">\n\u05D0^\u05D1\u05D2 xyz \u05D3\u05D4\u05D5 def \u05D6\u05D7\u05D8|\n</div>',
  '11-2 ltr forward lineboundary');

selection_test(
  '<div contenteditable dir="ltr">\n\u05D0\u05D1|\u05D2 xyz \u05D3\u05D4\u05D5 def \u05D6\u05D7\u05D8\n</div>',
  selection => selection.modify('extend', 'forward', 'lineboundary'),
  '<div contenteditable dir="ltr">\n\u05D0\u05D1^\u05D2 xyz \u05D3\u05D4\u05D5 def \u05D6\u05D7\u05D8|\n</div>',
  '11-3 ltr forward lineboundary');

selection_test(
  '<div contenteditable dir="ltr">\n\u05D0\u05D1\u05D2| xyz \u05D3\u05D4\u05D5 def \u05D6\u05D7\u05D8\n</div>',
  selection => selection.modify('extend', 'forward', 'lineboundary'),
  '<div contenteditable dir="ltr">\n\u05D0\u05D1\u05D2^ xyz \u05D3\u05D4\u05D5 def \u05D6\u05D7\u05D8|\n</div>',
  '11-4 ltr forward lineboundary');

selection_test(
  '<div contenteditable dir="ltr">\n\u05D0\u05D1\u05D2 |xyz \u05D3\u05D4\u05D5 def \u05D6\u05D7\u05D8\n</div>',
  selection => selection.modify('extend', 'forward', 'lineboundary'),
  '<div contenteditable dir="ltr">\n\u05D0\u05D1\u05D2 ^xyz \u05D3\u05D4\u05D5 def \u05D6\u05D7\u05D8|\n</div>',
  '11-5 ltr forward lineboundary');

selection_test(
  '<div contenteditable dir="ltr">\n\u05D0\u05D1\u05D2 x|yz \u05D3\u05D4\u05D5 def \u05D6\u05D7\u05D8\n</div>',
  selection => selection.modify('extend', 'forward', 'lineboundary'),
  '<div contenteditable dir="ltr">\n\u05D0\u05D1\u05D2 x^yz \u05D3\u05D4\u05D5 def \u05D6\u05D7\u05D8|\n</div>',
  '11-6 ltr forward lineboundary');

selection_test(
  '<div contenteditable dir="ltr">\n\u05D0\u05D1\u05D2 xy|z \u05D3\u05D4\u05D5 def \u05D6\u05D7\u05D8\n</div>',
  selection => selection.modify('extend', 'forward', 'lineboundary'),
  '<div contenteditable dir="ltr">\n\u05D0\u05D1\u05D2 xy^z \u05D3\u05D4\u05D5 def \u05D6\u05D7\u05D8|\n</div>',
  '11-7 ltr forward lineboundary');

selection_test(
  '<div contenteditable dir="ltr">\n\u05D0\u05D1\u05D2 xyz| \u05D3\u05D4\u05D5 def \u05D6\u05D7\u05D8\n</div>',
  selection => selection.modify('extend', 'forward', 'lineboundary'),
  '<div contenteditable dir="ltr">\n\u05D0\u05D1\u05D2 xyz^ \u05D3\u05D4\u05D5 def \u05D6\u05D7\u05D8|\n</div>',
  '11-8 ltr forward lineboundary');

selection_test(
  '<div contenteditable dir="ltr">\n\u05D0\u05D1\u05D2 xyz |\u05D3\u05D4\u05D5 def \u05D6\u05D7\u05D8\n</div>',
  selection => selection.modify('extend', 'forward', 'lineboundary'),
  '<div contenteditable dir="ltr">\n\u05D0\u05D1\u05D2 xyz ^\u05D3\u05D4\u05D5 def \u05D6\u05D7\u05D8|\n</div>',
  '11-9 ltr forward lineboundary');

selection_test(
  '<div contenteditable dir="ltr">\n\u05D0\u05D1\u05D2 xyz \u05D3|\u05D4\u05D5 def \u05D6\u05D7\u05D8\n</div>',
  selection => selection.modify('extend', 'forward', 'lineboundary'),
  '<div contenteditable dir="ltr">\n\u05D0\u05D1\u05D2 xyz \u05D3^\u05D4\u05D5 def \u05D6\u05D7\u05D8|\n</div>',
  '11-10 ltr forward lineboundary');

selection_test(
  '<div contenteditable dir="ltr">\n\u05D0\u05D1\u05D2 xyz \u05D3\u05D4|\u05D5 def \u05D6\u05D7\u05D8\n</div>',
  selection => selection.modify('extend', 'forward', 'lineboundary'),
  '<div contenteditable dir="ltr">\n\u05D0\u05D1\u05D2 xyz \u05D3\u05D4^\u05D5 def \u05D6\u05D7\u05D8|\n</div>',
  '11-11 ltr forward lineboundary');

selection_test(
  '<div contenteditable dir="ltr">\n\u05D0\u05D1\u05D2 xyz \u05D3\u05D4\u05D5| def \u05D6\u05D7\u05D8\n</div>',
  selection => selection.modify('extend', 'forward', 'lineboundary'),
  '<div contenteditable dir="ltr">\n\u05D0\u05D1\u05D2 xyz \u05D3\u05D4\u05D5^ def \u05D6\u05D7\u05D8|\n</div>',
  '11-12 ltr forward lineboundary');

selection_test(
  '<div contenteditable dir="ltr">\n\u05D0\u05D1\u05D2 xyz \u05D3\u05D4\u05D5 |def \u05D6\u05D7\u05D8\n</div>',
  selection => selection.modify('extend', 'forward', 'lineboundary'),
  '<div contenteditable dir="ltr">\n\u05D0\u05D1\u05D2 xyz \u05D3\u05D4\u05D5 ^def \u05D6\u05D7\u05D8|\n</div>',
  '11-13 ltr forward lineboundary');

selection_test(
  '<div contenteditable dir="ltr">\n\u05D0\u05D1\u05D2 xyz \u05D3\u05D4\u05D5 d|ef \u05D6\u05D7\u05D8\n</div>',
  selection => selection.modify('extend', 'forward', 'lineboundary'),
  '<div contenteditable dir="ltr">\n\u05D0\u05D1\u05D2 xyz \u05D3\u05D4\u05D5 d^ef \u05D6\u05D7\u05D8|\n</div>',
  '11-14 ltr forward lineboundary');

selection_test(
  '<div contenteditable dir="ltr">\n\u05D0\u05D1\u05D2 xyz \u05D3\u05D4\u05D5 de|f \u05D6\u05D7\u05D8\n</div>',
  selection => selection.modify('extend', 'forward', 'lineboundary'),
  '<div contenteditable dir="ltr">\n\u05D0\u05D1\u05D2 xyz \u05D3\u05D4\u05D5 de^f \u05D6\u05D7\u05D8|\n</div>',
  '11-15 ltr forward lineboundary');

selection_test(
  '<div contenteditable dir="ltr">\n\u05D0\u05D1\u05D2 xyz \u05D3\u05D4\u05D5 def| \u05D6\u05D7\u05D8\n</div>',
  selection => selection.modify('extend', 'forward', 'lineboundary'),
  '<div contenteditable dir="ltr">\n\u05D0\u05D1\u05D2 xyz \u05D3\u05D4\u05D5 def^ \u05D6\u05D7\u05D8|\n</div>',
  '11-16 ltr forward lineboundary');

selection_test(
  '<div contenteditable dir="ltr">\n\u05D0\u05D1\u05D2 xyz \u05D3\u05D4\u05D5 def |\u05D6\u05D7\u05D8\n</div>',
  selection => selection.modify('extend', 'forward', 'lineboundary'),
  '<div contenteditable dir="ltr">\n\u05D0\u05D1\u05D2 xyz \u05D3\u05D4\u05D5 def ^\u05D6\u05D7\u05D8|\n</div>',
  '11-17 ltr forward lineboundary');

selection_test(
  '<div contenteditable dir="ltr">\n\u05D0\u05D1\u05D2 xyz \u05D3\u05D4\u05D5 def \u05D6|\u05D7\u05D8\n</div>',
  selection => selection.modify('extend', 'forward', 'lineboundary'),
  '<div contenteditable dir="ltr">\n\u05D0\u05D1\u05D2 xyz \u05D3\u05D4\u05D5 def \u05D6^\u05D7\u05D8|\n</div>',
  '11-18 ltr forward lineboundary');

selection_test(
  '<div contenteditable dir="ltr">\n\u05D0\u05D1\u05D2 xyz \u05D3\u05D4\u05D5 def \u05D6\u05D7|\u05D8\n</div>',
  selection => selection.modify('extend', 'forward', 'lineboundary'),
  '<div contenteditable dir="ltr">\n\u05D0\u05D1\u05D2 xyz \u05D3\u05D4\u05D5 def \u05D6\u05D7^\u05D8|\n</div>',
  '11-19 ltr forward lineboundary');

selection_test(
  '<div contenteditable dir="ltr">\n\u05D0\u05D1\u05D2 xyz \u05D3\u05D4\u05D5 def \u05D6\u05D7\u05D8|\n</div>',
  selection => selection.modify('extend', 'forward', 'lineboundary'),
  '<div contenteditable dir="ltr">\n\u05D0\u05D1\u05D2 xyz \u05D3\u05D4\u05D5 def \u05D6\u05D7\u05D8|\n</div>',
  '11-20 ltr forward lineboundary');
</script>
